setSmallIcon

Set the small icon to use in the notification layouts. Different classes of devices may return different sizes. See the UX guidelines for more information on how to design these icons.

Parameters

icon

The small Icon object to use


Set the small icon to use in the notification layouts. Different classes of devices may return different sizes. See the UX guidelines for more information on how to design these icons.

Parameters

icon

A resource ID in the application's package of the drawable to use.


A variant of setSmallIcon(int) that takes an additional level parameter for when the icon is a LevelListDrawable.

Parameters

icon

A resource ID in the application's package of the drawable to use.

level

The level to use for the icon.

See also